<%--
  Created by IntelliJ IDEA.
  User: 边牧
  Date: 2023/1/10
  Time: 18:12
  To change this template use File | Settings | File Templates.
--%>

<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/web04_1_war/servletRegister" method="post">
    <div id="error">${rig_msg}</div>
    <p>账号 <input type="text" name="name"></p>
    <p>密码 <input type="password" name="password"></p>
    <tr>
        <td>验证码</td>
        <td class="inputs">
            <input name="check" type="text" id="check">
            <img id="tu" src="/web04_1_war/checkServlet">
            <a href="#" id="IMG">看不清？</a>
        </td>
    </tr>
    <br>
    <input type="submit" value="注册">
</form>

<p>已有账号？<a href="/web04_1_war/login.jsp">登录</a></p>

<script>
    document.getElementById("IMG").onclick = function () {

        document.getElementById("tu").src="/web04_1_war/checkServlet?"+new Date().getMilliseconds();
    }
</script>
</body>
</html>
